Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
11 lines (7 loc) · 295 Bytes

12.1.7 - swoole_client->getSockName.md

File metadata and controls

11 lines (7 loc) · 295 Bytes

swoole_client->getSockName

用于获取客户端socket的本地host:port,必须在连接之后才可以使用。

array swoole_client->getsockname();
  • 调用成功返回一个数组,如:array('host' => '127.0.0.1', 'port' => 53652)

此函数在1.7.13以上版本可用